package com.espirit.eap.sa;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

@Entity
public class ModelFieldPermission extends FieldPermission {
	private static final long serialVersionUID = 5126571675498957060L;

	private String modelSimpleName;
	private UserTemplate userTemplate;
	
	public String getModelSimpleName() {
		return modelSimpleName;
	}
	public void setModelSimpleName(String modelSimpleName) {
		this.modelSimpleName = modelSimpleName;
	}
	
	@ManyToOne(targetEntity=UserTemplate.class,fetch=FetchType.LAZY)
	public UserTemplate getUserTemplate() {
		return userTemplate;
	}
	public void setUserTemplate(UserTemplate userTemplate) {
		this.userTemplate = userTemplate;
	}
}
